package com.crm.dao.mapper.customMapper.cluePoolManagerCustomMapper;

import com.crm.model.vo.cluePoolManager.ClueReceiveVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/1/8 12:29
 */
public interface ClueReceiveCustomMapper {
    /**
     * 线索池详情-线索清单-领取记录
     * @param clueId---线索Id
     * @return
     */
    List<ClueReceiveVO> selectClueReceiveVOList(@Param("clueId") String clueId);

    /**
     *
     * @param cluePoolId
     * @param yearMonth
     * @return
     */
    long selectReceiveCountForCurrentMonthByPoolId(@Param("cluePoolId") String cluePoolId,@Param("yearMonth") String yearMonth);

    /**
     *(线索清单)线索领取次数
     * @param clueId ---线索ID
     * @return
     */
    long selectReceiveCountByClueId(@Param("clueId") String clueId);
}
